#ifndef SQLITEWRITER_H
#define SQLITEWRITER_H

//#include <QObject>
#include "precomp.h"

class SqliteWriter : public QObject
{
    Q_OBJECT
public:
    explicit SqliteWriter(QObject *parent = nullptr);
    ~SqliteWriter();
    bool m_stopThread;

public slots:
    void run();
    void abnormalStopThread();
    void normalStopThread();
signals:
    void finishedTask();
    void progressChanged(int progress); // 进度改变信号
private:

    QSqlDatabase m_db;
    int m_currentDealNum;
    bool m_taskFinishFlag;
};

#endif // SQLITEWRITER_H
